Skip to content

Test restarting channelfinder works ok - #123

Merged
jacomago merged 3 commits into
masterfrom
cf_restart_test
Nov 4, 2025
Merged

Test restarting channelfinder works ok#123
jacomago merged 3 commits into
masterfrom
cf_restart_test

Conversation

@jacomago

Copy link
Copy Markdown
Contributor

No description provided.

@jacomago jacomago self-assigned this Oct 29, 2025
@jacomago
jacomago marked this pull request as ready for review October 29, 2025 07:54
Comment thread server/tests/test_restart.py Outdated
Comment on lines +65 to +77
def test_channels_same_after_restart(self, setup_compose: DockerCompose, cf_client: ChannelFinderClient) -> None: # noqa: F811
channels_begin = cf_client.find(name="*")
restart_container(setup_compose, "cf")
assert wait_for_sync(cf_client, check_connection_active)
channels_end = cf_client.find(name="*")
assert len(channels_begin) == len(channels_end)
channels_match(channels_begin, channels_end, PROPERTIES_TO_MATCH)
shutdown_container(setup_compose, "ioc1-1")
assert wait_for_sync(
cf_client, lambda cf_client: check_channel_property(cf_client, "IOC1-1:Msg-I", INACTIVE_PROPERTY)
)
channels_inactive = cf_client.find(property=[("iocName", "IOC1-1")])
assert all(INACTIVE_PROPERTY in ch["properties"] for ch in channels_inactive)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like two separate tests...

Comment thread server/tests/test_restart.py
Comment thread server/tests/test_restart.py
Co-authored-by: anderslindho <44849690+anderslindho@users.noreply.github.com>
@jacomago
jacomago force-pushed the cf_restart_test branch 3 times, most recently from d4d763a to 718b7d4 Compare October 31, 2025 11:09
@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2025

Copy link
Copy Markdown

@jacomago
jacomago merged commit 098f74f into master Nov 4, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants